package com.lumlord.db.influx;


import lombok.Data;
import org.hibernate.validator.constraints.URL;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.NotBlank;

/**
 * @Author: GPF peizhi
 * @Date: 2020-11-24
 * @Description:
 */
@Configuration
@ConfigurationProperties(prefix = "lumlord.db.influx")
@Data
public class InfluxDBProperties {
    @URL
    private String url;
    private String userName;
    private String passWord;
    // 数据库
    @NotBlank
    private String database;
    //保存策略
    private String retentionPolicy;
}
